<div ng-controller='TeacherIndex' class='right-cont'>
    <div class="teacher-index" >
        <div class='title'>
            <div class="title-line" ></div>
            <div class="title-word" >主讲人列表</div>
        </div>
        <div class='box-cont'>
            <div class='box-tab' >
                <div class='tab-content'>
                    <div class='tab-pane fade active in'>
                        <table class='table table-list wrap-checkbox'>
                            <tr>
                                <td>ID</td>
                                <td>姓名</td>
                                <td>性别</td>
                                <td>电话</td>
                                <td>教师介绍</td>
                                <td>操作</td>
                            </tr>
                            <tr ng-repeat='teacher in teachers'>
                                <td>{{teacher.id}}</td>
                                <td>{{teacher.name}}</td>
                                <td>{{teacher.sex}}</td>
                                <td><span style="color:#58a3e9 ">{{teacher.phone}}</span></td>
                                <td>{{teacher.decipt}}</td>
                                <td>
                                    <a ng-click='edit(teacher.id)' style="color: inherit;text-decoration: none;cursor: pointer">
                                        <i class="fa fa-pencil" aria-hidden="true"></i>编辑
                                    </a>
                                    <div class="button-line" ></div>
                                    <a ng-click='delete(teacher.id)' style="color: inherit;text-decoration: none;cursor: pointer">
                                        <i class="fa fa-trash" aria-hidden="true"></i>删除
                                    </a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class='box-page' ng-bind-html='pages'></div>
            </div>
        </div>
    </div>
    <div class="edit-teacher" style="display: none">
        <div class='title'>
            <div class="title-line" ></div>
            <div class="title-word" >主讲人编辑</div>
        </div>
        <div class='box-cont' style="padding: 40px">
            <form class="form-horizontal" role="form" enctype="multipart/form-data" id="add-message">
                <div class="form-group" >
                    <label  class="col-sm-1 control-label" >讲师信息</label>
                </div>
                <div class="form-group">
                    <label  class="col-sm-1 control-label" >讲师姓名：</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="name" placeholder="请输入教师名称">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-1 control-label" >性别：</label>
                    <div class="col-sm-3">
                        <select class="form-control" ng-model='sex' style="padding:0px 0px 0px 10px">
                            <option  value='0'>男</option>
                            <option  value='1'>女</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-1 control-label" >电话：</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="phone" placeholder="请输入电话号码">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-1 control-label" >讲师介绍：</label>
                    <div class="col-sm-3">
                        <textarea class='form-control' ng-model='decipt' rows="4"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2" style="text-align: right"><input type="reset" class='btn btn-default btn-sm btn-w-sm' value="取消"  style="background-color: #ffffff;color:#3e4855;"></div>
                    <div class="col-sm-2" style="margin-left:100px "><button type="button" class='btn btn-primary btn-sm btn-w-sm'  ng-click='save()'>保存</button></div>
                </div>
            </form>
        </div>
    </div>
</div>